import java.util.InputMismatchException;
import java.util.Scanner;

public class demo8 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        try{System.out.println("input num1:");
        int num1 = input.nextInt();
        System.out.println("input num2:");
        int num2 = input.nextInt();
        int a = num1 / num2;
        System.out.println(a);}catch (ArithmeticException e){
            System.out.println("num2不能为0");
        }catch (InputMismatchException e){
            System.out.println("请输入整数");
        }catch (Exception e){
            System.out.println("其他错误");
        }finally {
            input.close();
            System.out.println("数据输入关闭");
        }
        System.out.println("game over");
    }
}
